import { postlink } from '@/api/postapi.js'

export let regest = {
    state: {
        onearr: []
    },
    mutations: {
        uparr(state, payload) {
            state.onearr = payload.data;
        },
    },
    actions: {
        axioslink(context, payload) {
            postlink(payload.url, payload.usp).then((ok) => {
                context.commit("uparr", ok)
            })
        },
    },
}